


for i in range(10, 100, 10):
    with open(f"log/run_dcqcn_{i}_0.log", "r") as f:
        lines = f.readlines()
    lines = lines[900:]
    max_active_flows = 0
    for line in lines:
        line = line.split()
        if len(line) < 5 or str(line[-3]) != "Active":
            continue
       
        try:
            max_active_flows = max(max_active_flows, int(line[-1]))
        except:
            pass
    print(f"log/run_dcqcn_{i}_0.log", max_active_flows)